{"version":3,"sources":["audioplayer.bundle.js"],"names":["exports","ui_fonts_opensans","main_polyfill_intersectionobserver","ui_vue","main_core_events","_State","Object","freeze","play","pause","stop","none","BitrixVue","component","props","id","default","src","autoPlayNext","background","data","isDark","preload","loaded","loading","playAfterLoad","state","progress","progressInPixel","seek","timeCurrent","timeTotal","created","this","preloadRequestSent","registeredId","registerPlayer","$Bitrix","eventEmitter","subscribe","onPlay","onStop","onPause","onPreload","mounted","getObserver","observe","$refs","body","beforeDestroy","unregisterPlayer","unsubscribe","unobserve","watch","value","preloadNext","methods","loadFile","arguments","length","undefined","source","clickToButton","setPosition","event","pixelPerPercent","track","offsetWidth","setProgress","currentTime","seeking","offsetX","percent","pixel","Math","round","formatTime","second","floor","hour","minute","toString","padStart","_this","registry","Data","get","babelHelpers","toConsumableArray","Set","concat","filter","sort","a","b","set","_this2","playNext","_this3","nextId","slice","emit","start","_this4","getData","initiator","audioEventRouter","eventName","duration","console","error","_this5","observer","IntersectionObserver","entries","forEach","entry","isIntersecting","target","threshold","computed","State","seekPosition","isMobile","progressPosition","labelTime","time","UA","navigator","userAgent","toLowerCase","includes","template","window","BX","Event"],"mappings":"CAAC,SAAUA,EAAQC,EAAkBC,EAAmCC,EAAOC,GAC9E,aAWA,IAAIC,EAASC,OAAOC,OAAO,CACzBC,KAAM,OACNC,MAAO,QACPC,KAAM,OACNC,KAAM,SAGRR,EAAOS,UAAUC,UAAU,iBAAkB,CAC3CC,MAAO,CACLC,GAAI,CACFC,QAAW,GAEbC,IAAK,CACHD,QAAW,IAEbE,aAAc,CACZF,QAAW,MAEbG,WAAY,CACVH,QAAW,UAGfI,KAAM,SAASA,IACb,MAAO,CACLC,OAAQ,MACRC,QAAS,OACTC,OAAQ,MACRC,QAAS,MACTC,cAAe,MACfC,MAAOrB,EAAOM,KACdgB,SAAU,EACVC,gBAAiB,EACjBC,KAAM,EACNC,YAAa,EACbC,UAAW,IAGfC,QAAS,SAASA,IAChBC,KAAKC,mBAAqB,MAC1BD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